
import java.util.concurrent.atomic.AtomicLong;

public class Information {

	private AtomicLong reserved = null;
	
	private AtomicLong success = null;
	
	private AtomicLong failure = null;

	public Information() {
		reserved = new AtomicLong(0);
		success = new AtomicLong(0);
		failure = new AtomicLong(0);
	}
	
	public long getTotal() {
		return (success.get()+failure.get());
	}
	
	public long getReserved() {
		return reserved.get();
	}

	public long getSuccess() {
		return success.get();
	}

	public long getFailure() {
		return failure.get();
	}
	
	public long incrementReserved() {
		return reserved.incrementAndGet();
	}

	public long incrementSuccess() {
		return success.incrementAndGet();
	}

	public long incrementFailure() {
		return failure.incrementAndGet();
	}
}
